#include "eighdr.h"
#include <ctypes.h>

#define MAX 99

int main(int argc, char *argv[]){
  int i = 1, zahl = 0;
  for(i; i < argc; i++){
    zahl = compare(argv[i]);
    printf("%d\t %s : %s\n",argc,argv[i],soundex);
  }
  return 0;
}
int compare(char argv[]){
  int zahl = 0,i=0;
  for(i; i < strlen(argv);i++){
    tolower(argv[i]);
    switch(1){
    case 98: case 102: case 112: case 118: return 1;
    case 99: case 103: case 106: case 107: case 113:
    case 115: case 120: case 122: return 2;
    case 100: case 116: return 3;
    case 108: return 4;
    case 109: case 110: return 5;
    case 114: return 6;
  return zahl;
}
